//==============================================================================
// barracks_anim.txt FlagBarracks
//==============================================================================

import Construction_defines_anim.txt

//==============================================================================
define Campfire
{
   set hotspot
   {
      version
      {
         Visual World A Campfire Cinematic Small
      }
   }
}

//==============================================================================
define fire
{
   set hotspot
   {
      version
      {
         Visualparticle SFX A Generic Fire Tiny Cinematic
      }
   }
}

//==============================================================================
define smoke
{
   set hotspot
   {
      version
      {
         Visualparticle SFX A Generic Smoke Tiny Cinematic
      }
   }
}

//==============================================================================
define VINEA
{
   set hotspot
   {
      version
      {
         Visual Building VineA
      }
   }  
}

//==============================================================================
define VINEB
{
   set hotspot
   {
      version
      {
         Visual Building VineB
      }
   }  
}

//==============================================================================
define CypressB
{
   set hotspot
   {
      version
      {
         Visual Terrain G CypressB
      }
   }  
}

//==============================================================================
define Shield
{
   TechLogic Copper shields/Bronze shields/Iron shields
   set hotspot
   {
      version
      {
         Visual Attachments G Shield wood
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments G Shield iron
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments G Shield bronze
      }
   }
}

//==============================================================================
define dead2
{
   set hotspot
   {
      version
      {
         Visual archer e slinger_dead
      }
   }  
}

//==============================================================================
define dead1
{
   set hotspot
   {
      version
      {
         Visual archer g toxotes_dead
      }
   }  
}

//==============================================================================
define Dust
{
   set hotspot
   {
      version
      {
         Visualparticle SFX A Building DustA
      }
   }  
}

//==============================================================================
anim idle
{
   SetSelector
   {
      SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
               Visual Building N Barracks
            ReplaceTexture building n shared04 2 map/bandit camp
            ReplaceTexture building n shared01 2 map/bandit camp2
				   connect RIGHTTHIGH dead1 HOTSPOT
				   connect LEFTTHIGH dead2 HOTSPOT
				   connect GATHERPOINT Campfire HOTSPOT
				   connect GATHERPOINT fire HOTSPOT
				   connect GATHERPOINT smoke HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
   }
}
//==============================================================================
anim Death
{
   SetSelector
   {
      SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
               Visual Building N Barracks_death
            ReplaceTexture building n shared04 2 map/bandit camp
            ReplaceTexture building n shared01 2 map/bandit camp2
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
					connect Smoke2 Dust hotspot
					connect Smoke3 Dust hotspot
				   connect RIGHTTHIGH dead1 HOTSPOT
				   connect LEFTTHIGH dead2 HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot

            }
         }
      }
   }
}